@isTest
private class Accountattachment_Test
{

static testMethod void Accountattachment() 
{
RecordType rec1=[Select Id From RecordType where SobjectType='Account' and IsActive=true and  Name='AAS Master Client'] ;
RecordType rec2=[Select Id From RecordType where SobjectType='Account' and IsActive=true and  Name='AAS Sales Account'] ;
Account acc1 = new Account();

    acc1.RecordTypeId =rec1.Id;
    acc1.Name = 'MasteraccountTest';
    insert acc1;
Account acc2 = new Account();
    acc2.RecordTypeId =rec2.Id;
    acc2.Master_Client__c=acc1.Id;
    acc2.Name = 'accountTest';
    insert acc2;
    Opportunity opp = new Opportunity();
    opp.RecordTypeId = RecordTypeHelper.GetRecordTypeId('Opportunity', 'Advanced Ad Solutions');
    opp.AccountId = acc2.Id;
    opp.Name = 'AAS opp test';
    opp.StageName = 'Closed Won';
    opp.CloseDate = Date.today().addDays(1);
    insert opp;
    Attachment attch= new Attachment(Name ='Testattch', ParentId = opp.Id, Body = Blob.valueOf('This is a Test'));
    insert attch;
    ApexPages.StandardController controller=new ApexPages.StandardController(acc2);
Accountattachmentcontroller acctattach=new Accountattachmentcontroller(controller);
    
    acctattach.getParam('0');
    acctattach.del();
    acctattach.edit();
    
    
    
    

}

}